<template>
	<view class="smart-container">
		<view class="smart-panel-title">1.容器</view>
		<view class="smart-panel-h" @click="goDetailPage('viewpage')"><text>view视图</text></view>
		<view class="smart-panel-h" @click="goDetailPage('scroll-view')"><text>scroll-view滚动视图</text></view>
		<view class="smart-panel-h" @click="goDetailPage('swipter')"><text>swipter可滑动视图</text></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetailPage(e) {
				if (typeof e === 'string') {
					uni.navigateTo({
						url: '/pages/components/' + e + '/' + e
					});
				} else {
					uni.navigateTo({
						url: e.url
					});
				}
			}
		}
	}
</script>

<style>
	
</style>
